<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>StringTween</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
.style2 {
	color: #999999;
	font-size: 12px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style4 {color: #999999}
.style5 {color: #006699}
.style6 {color: #339966}
.style8 {color: #996600}
.style11 {color: #999999; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; }
-->
</style>
<script src="stringtween_files/AC_RunActiveContent.js" type="text/javascript"></script>
</head><body>
<div align="center">
  <table bgcolor="#333333" border="0" cellpadding="0" cellspacing="1" width="200">
    <tbody><tr>
      <td bgcolor="#000000" valign="top"><p class="style2 style4">/*<br>
        * <span class="style8">@author</span> Ryan Liu | www.ryan-liu.com<br>
        * <span class="style8">@since</span> 2009-9-4 22:41 <br>
        */<br>
        <span class="style5">var</span> str:<span class="style5">String</span> = <span class="style6">"StringTween Class is for doing this kind of string effect."</span>;<br>
        <span class="style5">var</span> initObj:<span class="style5">Object</span> = { duration:1.5,ease:Sine.easeInOut,endString:str};<br>
        <span class="style5">var</span> strtween = <span class="style5">new</span> <span class="style5">StringTween</span>(initObj);<br>
        strtween.<span class="style5">addEventListener</span>(<span class="style5">Event.CHANGE</span>, onChange);</p>
          <p class="style2"><span class="style5">function</span> onChange(e:<span class="style5">Event</span>) {<br>
            &nbsp;&nbsp;&nbsp;&nbsp;tf.<span class="style5">text</span> = strtween.string;<br>
            }<br>
            //Click on the swf to replay.点击重播。</p></td>
      <td bgcolor="#000000"><span class="style11">Basic
        </span>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','200','tabindex','0','src','example_basic','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','example_basic' ); //end AC code
    </script><embed tabindex="0" src="stringtween_files/example_basic.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="200"> 
          <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="500" height="200" tabindex="0"> <param name="movie"
value="example_basic.swf" /> <param name="quality" value="high" />
<embed src="example_basic.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="500" height="200"></embed>
</object> </noscript></td>
    </tr>
    <tr>
      <td bgcolor="#000000"><span class="style11">Delay </span>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','200','tabindex','1','src','example_delay','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','example_delay' ); //end AC code
    </script><embed tabindex="1" src="stringtween_files/example_delay.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="200"> 
            <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="500" height="200" tabindex="1"> <param name="movie"
value="example_delay.swf" /> <param name="quality" value="high" />
<embed src="example_delay.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="500" height="200"></embed>
</object> </noscript></td>
      <td bgcolor="#000000"><span class="style11">Set Sample String </span>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','200','tabindex','4','src','example_sampleString','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','example_sampleString' ); //end AC code
  </script><embed tabindex="4" src="stringtween_files/example_sampleString.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="200"> 
            <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="500" height="200" tabindex="4"> <param name="movie"
value="example_sampleString.swf" /> <param name="quality" value="high"
/> <embed src="example_sampleString.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="500" height="200"></embed>
</object> </noscript></td></tr>
    <tr>
      <td bgcolor="#000000"><span class="style11">Events</span>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','200','tabindex','2','src','example_event','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','example_event' ); //end AC code
  </script><embed tabindex="2" src="stringtween_files/example_event.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="200"> 
            <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="500" height="200" tabindex="2"> <param name="movie"
value="example_event.swf" /> <param name="quality" value="high" />
<embed src="example_event.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="500" height="200"></embed>
</object> </noscript></td>
      <td bgcolor="#000000"><span class="style11">Reverse StringTween</span>
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','500','height','200','tabindex','3','src','example_reverse','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','example_reverse' ); //end AC code
    </script><embed tabindex="3" src="stringtween_files/example_reverse.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="200"> 
            <noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="500" height="200" tabindex="3"> <param name="movie"
value="example_reverse.swf" /> <param name="quality" value="high" />
<embed src="example_reverse.swf" quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="500" height="200"></embed>
</object> </noscript>
      </td></tr>
  </tbody></table>
</div>
<!-- begin google analytics --> 
<script type="text/javascript"> 
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="stringtween_files/ga.js" type="text/javascript"></script> 
<script type="text/javascript"> 
try {
var pageTracker = _gat._getTracker("UA-1547283-1");
pageTracker._trackPageview();
} catch(err) {}</script> 
<!-- end google analytics --> 
</body></html>